package com.fanbuchi.app.ins.filter;

import com.fanbuchi.app.ins.vo.base.Response;

import rx.Observable;
import rx.functions.Func1;

/**
 * Created by rabbit on 2016/3/21.
 */
public class Filter {


    public static void afterfliter(Observable observable){
        observable.filter(new Func1<Response, Boolean>() {
            @Override
            public Boolean call(Response response) {
                if (response.code==0){
                    return  true;
                }
                return false;
            }
        });
    }
}
